SG RegExp | |
ReplaceString Property |
Overview | Methods | Properties | Pattern Syntax |
Read only. Returns replacement string.
object.ReplaceString(template)
Part | Description |
object | The object is always RegExp. |
template | Template string |
After a successful Match you can retrieve a replacement string as an alternative to building up the various substrings by hand.
Each character in the template string will be copied to the return value except for the following special characters:
& | The complete matched string (sub-string 0). |
\1 | Sub-string 1 |
... | and so on until... |
\9 | Sub-string 9 |